package com.wsk.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wsk1103 on 2017/9/17.
 */
public class UserTest {
    public static void main(String[] args) {
        List<UserPermission> l = new ArrayList<>();
//        UserPermission userPermission = UserPermission.of().setPermission("1103");
        l.add(UserPermission.of("1103").setAge(12));
        l.add(UserPermission.of("1104"));
        l.add(UserPermission.of("1105"));
        User user = User.of("wsk","wsk1103").setLists(l);
        System.out.println(user.getUsername());
        System.out.println(user.getPassword());
        System.out.println(user.getLists().get(0).getPermission());
        System.out.println(user.toString());
        WW w = WW.of().setCc("w");
        System.out.println(w.getCc());
    }
}
